 <div id="outer-collection"><?php
				  
	$attributes = array('class' => 'login', 'id' => 'login');
	
	echo form_open('login/MemberLogin');
	echo form_hidden('form', true);
	
	 echo '<div class="error" >'.$this->validation->error_string.'</div>';
	$username = array(
				  'name'        => 'username',
				  'id'          => 'username',
				  'value'       => $this->validation->username,
				  'maxlength'   => '100',
				  'size'        => '50',
				  'class'       => 'input',
				);
				 
	$password = array(
				  'name'        => 'password',
				  'id'          => 'password',
				  'value'       => $this->validation->password,
				  'maxlength'   => '100',
				  'size'        => '50',
				  'class'       => 'input',
				);	
				
												
	
	$tmpl = array (
                    'table_open'          => '<table border="0" cellpadding="2" cellspacing="2"><tr><th colspan="2">Login</th></tr>',

                    'heading_row_start'   => '<tr>',
                    'heading_row_end'     => '</tr>',
                    'heading_cell_start'  => '<th>',
                    'heading_cell_end'    => '</th>',

                    'row_start'           => '<tr>',
                    'row_end'             => '</tr>',
                    'cell_start'          => '<td>',
                    'cell_end'            => '</td>',

                    'row_alt_start'       => '<tr>',
                    'row_alt_end'         => '</tr>',
                    'cell_alt_start'      => '<td>',
                    'cell_alt_end'        => '</td>',

                    'table_close'         => '<tfoot><tr><td>&nbsp;</td><td>&nbsp;</td></tfoot></table>'
              );

	$this->table->set_template($tmpl); 
	
	
	
	$this->table->add_row('Username',form_input($username));
	$this->table->add_row('Password',form_password($password));
	$this->table->add_row('','<input type="submit" name="post"  class="small-button" value="Login" />&nbsp;&nbsp;<input type="reset" name="Reset" class="small-button" id="button" value="Reset" />');
	

	echo $this->table->generate();
	
	
?></form></div>